package com.wyp.design.pattern.behavior.state;

/**
 * @author: Oliver
 * @time: 2021/1/22/20:14
 */
public class SpeedState extends CourseVideoState {
    @Override
    void play() {
        super.courseVideoContext.setCourseVideoState(CourseVideoContext.PLAY_STATE);
    }

    @Override
    void pause() {
        super.courseVideoContext.setCourseVideoState(CourseVideoContext.PAUSE_STATE);
    }

    @Override
    void speed() {
        System.out.println("加速播放状态");
    }

    @Override
    void stop() {
        super.courseVideoContext.setCourseVideoState(CourseVideoContext.STOP_STATE);
    }
}
